package com.yunchen.BooksManagementSystem.user.dao;

import com.yunchen.BooksManagementSystem.manage.entity.borrowingRecord;
import com.yunchen.BooksManagementSystem.user.entity.Books;
import com.yunchen.BooksManagementSystem.user.entity.UserInformation;

import java.util.ArrayList;

public interface userDao {

    ArrayList<Books> getAllBooks() throws Exception;
    ArrayList<Books> getBooksByCategory(String category) throws Exception;
    ArrayList<UserInformation> personalInformation(String userId) throws Exception;
    int borrowBook(String userName,String bookName) throws Exception;
    int returnBook(String userName,String bookName) throws Exception;
    ArrayList<borrowingRecord> userBorrowing(String userName) throws Exception;
    ArrayList<borrowingRecord> history(String userName) throws Exception;

}
